package com.imooc.miaosha.redis;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author simple
 * @version 1.0
 * @date 2018/6/14 15:37
 */
@Setter
@Getter
@ToString
@Component
@ConfigurationProperties(prefix = "redis")
@EnableConfigurationProperties(RedisConfig.class)
public class RedisConfig {
    private String host;
    private int port;
    private int timeout;
    private String password;
    private int poolMaxTotal;
    private int poolMaxActive;
    private int poolMaxIdle;
    private int poolMaxWait;
}
